package com.gnkexy.springframework.test.event;

import com.gnkexy.springframework.context.ApplicationListener;
import com.gnkexy.springframework.context.event.ContextClosedEvent;

import java.util.Date;

public class ContextClosedEventListener implements ApplicationListener<ContextClosedEvent> {
    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        System.out.println("关闭事件："+event.getSource()+new Date());
    }
}
